import post2Portal from 'src/api/common'

export const menuList = (data) => {
  let params = {
    api: '/sys/permission/list',
    methods: 'GET',
    data: data
  }
  return post2Portal(params);
};

export const addMenu = (data) => {
  let params = {
    api: '/sys/permission/add',
    methods: 'POST',
    data: data,

  }
  return post2Portal(params);
};


export const removeMenu = (data) => {
  let params = {
    api: '/sys/permission/remove',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
};

export const updateMenu = (data) => {
  let params = {
    api: '/sys/permission/update',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
};
